package com.wwj.core.log.entity;

import com.wwj.framework.entity.BaseUUIDEntity;

import java.util.Date;

public class LogGame extends BaseUUIDEntity {

    public static final String CATCH_TYPE_AUTO = "A";

    public static final String CATCH_TYPE_MANUAL = "M";

    private String key;
    private String serverName;
    private Integer playerId;
    private String deviceId;
    private String coinTime;
    private String catchTime;
    private String catchType;
    private String catchResult;
    private Date createTime;
    private Date updateTime;

    public LogGame() {
    }

    public LogGame(String key, String serverName, Integer playerId, String deviceId) {
        this.key = key;
        this.serverName = serverName;
        this.playerId = playerId;
        this.deviceId = deviceId;
        this.coinTime = Long.toString(System.currentTimeMillis());
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getServerName() {
        return serverName;
    }

    public void setServerName(String serverName) {
        this.serverName = serverName;
    }

    public Integer getPlayerId() {
        return playerId;
    }

    public void setPlayerId(Integer playerId) {
        this.playerId = playerId;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getCoinTime() {
        return coinTime;
    }

    public void setCoinTime(String coinTime) {
        this.coinTime = coinTime;
    }

    public String getCatchTime() {
        return catchTime;
    }

    public void setCatchTime(String catchTime) {
        this.catchTime = catchTime;
    }

    public String getCatchType() {
        return catchType;
    }

    public void setCatchType(String catchType) {
        this.catchType = catchType;
    }

    public String getCatchResult() {
        return catchResult;
    }

    public void setCatchResult(String catchResult) {
        this.catchResult = catchResult;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
